﻿@model SRF.Admin.Models.Role
@{
    Layout = "~/Views/Shared/_EditDialog.cshtml";  
}
@using SRF.UI.Html
@section header{
    <script type="text/javascript" language="javascript">
        function onComplete() {
            $.dialog.close("ok");
        }
        function onDialogClose(msg) {
            $.ajaxSubmit();
        } 
    </script>
    <style type="text/css">
    .leftpanel
    {
        float:left;
        }
    .rightpanel
    {
        float:right;
        }
    </style>
}
@using (Ajax.BeginForm("edit", null, new AjaxOptions() { HttpMethod = "Post", OnComplete = "onComplete" }, new { @class = "form-horizontal" }))
{   
    @Html.HiddenFor(m => m.Id) 
    <div class="leftpanel">
        <table>
            <tr>
                <td>
                    <label class="control-label" for="Name">
                        名称:</label>
                    @Html.TextBoxFor(m => m.Name)
                </td>
            </tr>
            <tr>
                <td>
                    <label class="control-label" for="Remark">
                        备注:</label>
                    @Html.TextBoxFor(m => m.Remark, new { @class = "textbox-larger" })
                </td>
            </tr>
        </table>
    </div>
    <div class="rightpanel">

    </div>
}